/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pokergame;

import java.io.Serializable;

/**
 *
 * @author Justin
 */
public class Card implements Serializable
{

    private final Rank rank;
    private final Suit suit;

    public enum Suit
    {

        CLUBS, HEARTS, SPADES, DIAMONDS
    }

    public enum Rank
    {

        ACE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING
    };

    Card(Suit suit, Rank rank)
    {
        this.rank = rank;
        this.suit = suit;
    }

    public Rank GetRank()
    {
        return rank;
    }

    public Suit GetSuit()
    {
        return suit;
    }
    //TODO add functionality for the cards to hold their own image for GUI develpment

    public @Override
    String toString()
    {
        return suit + " of " + rank;
    }
}